import { axios } from '@/utils/request'
export function studentCommentList(params) {
    return axios({
      url: '/school/evaluates/teacher-index',
      method: 'post',
      data: params
    })
  }
  export function evaluatesDetails(id,params) {
    return axios({
      url: '/school/evaluates/'+id+'/teacher-show',
      method: 'post',
      data:params
     
    })
  }
//教师评价
export function teacherCommentList(params) {
    return axios({
      url: '/school/evaluates/stu-index',
      method: 'post',
      data: params
    })
  }
  export function teacherDetails(id) {
    return axios({
      url: '/school/evaluates/'+id+'/stu-show',
      method: 'post',
    })
  }
  //评论记录
  export function studentcommentrecordList(params) {
    return axios({
      url: '/school/evaluates/teacher-record',
      method: 'post',
      data: params
    })
  } 
  //评分维度
  export function scoreDimension(params) {
    return axios({
      url: '/school/evaluate-score-dims',
      method: 'post',
      data: params
    })
  } 
  //删除
  export function deletescoreDimension(id) {
    return axios({
      url: '/school/evaluate-score-dims/'+id+'/delete',
      method: 'post',
     
    })
  } 

  export function createDataScore(params) {
    return axios({
      url: '/school/evaluate-score-dims/create',
      method: 'post',
      data:params
    })
  }
  //评论学员记录详情
  export function studentevaluates(params) {
    return axios({
      url: '/school/evaluates/info',
      method: 'post',
      data:params
    })
  }
  export function lookComments(params) {
    return axios({
      url: '/school/evaluates/comment',
      method: 'post',
      data:params
    })
  }
  export function deleteComment(id) {
    return axios({
      url: '/school/evaluates/'+id+'/delete-comment',
      method: 'post',
    
    })
  } 


  export function evaluatesCreate(data) {
    return axios({
      url: '/school/evaluates/teacher-create',
      method: 'post',
      data
    })
  } 


  export function evaluatesEdit(id,data) {
    return axios({
      url: `/school/evaluates/${id}/teacher-edit`,
      method: 'post',
      data
    })
  }

